//
//  GuideViewController.m
//  Movie
//
//  Created by cjy on 16/4/9.
//  Copyright © 2016年 YJC. All rights reserved.
//

#import "GuideViewController.h"
#import "GuideView.h"
#define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width)
#define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)
@interface GuideViewController ()

//@property (nonatomic,strong)UIImageView *imageView;

@property (nonatomic,strong)GuideView *markView;

@end

@implementation GuideViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
//    self.navigationController.navigationBarHidden = YES;
    
    
    UIImageView *imageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 64, self.view.frame.size.width, self.view.frame.size.height-64)];
    [imageView setImage:[UIImage imageNamed:@"guide"]];
    _markView = [[GuideView alloc]initWithFrame:imageView.bounds];
    _markView.model = GuideViewCleanModeOval;
    _markView.markText = @"欢迎使用...";
    [imageView addSubview:_markView];
    [self.view addSubview:imageView];

    
 
}

-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{

//
    
    NSArray *rectArray = @[
                           [NSValue valueWithCGRect:CGRectMake(10,145,20,20)],
                           [NSValue valueWithCGRect:CGRectMake(10,390,20,20)],
                           [NSValue valueWithCGRect:CGRectMake(280,30,40,40)],
                           [NSValue valueWithCGRect:CGRectMake(160,270,50,50)]
                           ];
    NSArray *messageArray = @[
                              @"音量增加",
                              @"音量降低",
                              @"收藏",
                              @"暂停"
                              ];
    [_markView setMessageArray:messageArray rectArray:rectArray];


}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
